home *** CD-ROM | disk | FTP | other *** search
- Path: bcarh8ab.bnr.ca!news
- From: Chabane Rezzik <rezzik@bnr.ca>
- Newsgroups: comp.lang.c++
- Subject: Re: HP C++ Compiler Problem w/ templates
- Date: Thu, 14 Mar 1996 08:30:49 -0500
- Organization: Nortel Technologies
- Message-ID: <31481F89.5CC0@bnr.ca>
- References: <4i7i5n$fst@access4.digex.net>
- NNTP-Posting-Host: bcarhf5e.bnr.ca
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (X11; I; HP-UX A.09.05 9000/712)
- CC: car@access4.digex.net
-
- Mr. Blue wrote:
- >
- > The HP compiler is generating a file in the ptrepository directory,
- > which fails to compile on the link step. It seems that this file is
- > missing a #include. If I add the #include manually and CC that file,
- > it will compile. If I go back up to the src directory and recompile,
- > the file gets regenerated in the ptrepository subdirectory and the
- > compile again fails on the link step.
- >
- > Has anyone else had this sort of problem? Is there workaround for it?
- > Some switch I need to pass to CC??
- >
- > Any help Appreciated!!!!
- >
- > Background info:
- > I am using HP C++ Compiler, version: Softbench 4.0.6
- > We are compiling on an HP 700 running 10.0.1
- >
- > I am trying to compile some of the sample programs that come with
- > Object Space's System<Toolkit>. Specifially, string7.cpp in the examples
- > directory if that matters to anyone.
- >
- > Chris Ruegger
-
- Two possiblities as you don't give more details on what compile options
- and
- link options you are using:
-
- 1. Take a look to the -pta, -pth, -ptb, ... options. Just do a man CC.
- 2. You are missing some pathes if this is on HPUX 10.01.
- I had similar problem. The template instantiation does not work
- correctly if
- the compiler version is (returned by what /opt/CC/bin/CC)
- HP C++ HPCPLUSPLUS A.10.09
- You need
- HP C++ HPCPLUSPLUS A.10.11
-
- You need the following two patches: PHSS_6469 and PHSS_6470
-
- Hope this helps
-
- --
- Chabane Rezzik
- Nortel technologies
- rezzik@bnr.ca
-